package com.complex.spring.advance.service.resource;

import java.beans.PropertyEditorSupport;
/**
 * 定义一个PropertyEditor,实现将string转换成我们需要的格式
 * @author gao
 *
 */
public class TestPropertyEditor extends PropertyEditorSupport{
	private String pattern;
	
	/**
	 * 重写setAsText
	 */
	@Override
	public void setAsText(String text) throws java.lang.IllegalArgumentException {
		
		setPattern("is changed");
	}

	public String getPattern() {
		return pattern;
	}

	public void setPattern(String pattern) {
		this.pattern = pattern;
	}

	
	
}
